/****************************
 * Author: Nikhil Kishore
 * Date: July 12, 2014
 * Description: Testing handCount function
******************************/


#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include "rngs.h"


int main()
{
	struct gameState game;
	int i;
   	int j;
   	int testSwitch = 0;

   	game.numPlayers = 4;

   	for(i = 0; i < 4 ; i ++){ //iterate one time for each player
	   game.whoseTurn = i;
	   for (j = 0; j < MAX_HAND; j++){
	      game.handCount[i] = j;
	      if (numHandCards(&game) != j){
		 printf("Card %d for player %d has failed. \n", j, i+1);
		 testSwitch = 1;
     	      }
	   }
       	}

     	if (testSwitch == 0)
     	   printf("Unittest 3 [numHandCards()] shows no errors.\n");

       	return 0;
}
